package com.info.zhiduoduo.repository.mapper.maker;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Condition;
import com.info.zhiduoduo.repository.entity.maker.MakerCase;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author bob
 * @since 2019-01-04
 */
public interface MakerCaseMapper extends BaseMapper<MakerCase> {

	default List<MakerCase> listByUserid(int userid){
		return new MakerCase().selectList(Condition.create().eq("userid", userid).orderBy("caseid", false));
	}
}
